package csu.web.credit_bank.service;

import csu.web.credit_bank.pojo.dto.ArticleCreateDto;
import csu.web.credit_bank.pojo.Articles;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 于欣淇
* @description 针对表【articles(文章表)】的数据库操作Service
* @createDate 2025-07-01 19:12:52
*/
public interface ArticlesService extends IService<Articles> {
    public Articles createArticle(ArticleCreateDto articleDto);
    public Articles getArticleById(String id);
    public List<Articles> getAllArticles(String id);
    public void updateArticleLikes(String articleId,String userId);
    public List<Articles> getHotArticlesInLast24Hours();
}
